package com.kfyang.manualgear.daoplugin.reference;

import com.intellij.openapi.util.TextRange;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiLiteralExpression;
import com.intellij.psi.PsiReferenceBase;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class ConstructReference extends PsiReferenceBase<PsiElement> {
    private PsiLiteralExpression toReference;
    public ConstructReference(@NotNull PsiElement element, TextRange textRange, PsiLiteralExpression toReference) {
        super(element, textRange);
        this.toReference = toReference;
    }

    @Override
    public @Nullable PsiElement resolve() {
        return toReference;
    }
}
